package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Customer;
import com.atguigu.jxc.entity.Supplier;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CustomerDao {
    List<Customer> selectCustomerList(@Param("offSet") Integer offSet,
                                      @Param("pageRow") Integer pageRow,
                                      @Param("customerName") String customerName);

    //保存
    void saveCustomer(Customer customer);

    //更新
    void updateCustomer(@Param("customer") Customer customer, @Param("customerId") String customerId);


    //支持批量删除
    void deleteCustomer(int id);


    List<Customer> getComboboxList(@Param("q") String q);
}
